﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication4
{
    public partial class DoiTac : Form
    {
        public DoiTac()
        {
            InitializeComponent();
        }

        private void doiTacBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.doiTacBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.loanPSDataSet);

        }

        private void NhanVien_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'loanPSDataSet.LoaiHinh' table. You can move, or remove it, as needed.
            this.loaiHinhTableAdapter.Fill(this.loanPSDataSet.LoaiHinh);
            // TODO: This line of code loads data into the 'loanPSDataSet.DoiTac' table. You can move, or remove it, as needed.
            this.doiTacTableAdapter.Fill(this.loanPSDataSet.DoiTac);

        }

        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult d1 = MessageBox.Show("ban chac chan muoc thoat khoi form Doi Tac", "thong bao", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
            if (d1 == DialogResult.OK)
                this.Close();
        }
    }
}
